package com.xlhj.jpa.service;

import com.xlhj.jpa.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author: lcj
 * @Date: 2020/11/16 8:45
 * @Description: 用户业务层接口
 * @Version: 0.0.1
 */
public interface SysUserService {

    SysUser insertUser(SysUser user);

    List<SysUser> selectAllUser();

    SysUser selectUserById(Long id);

    SysUser updateUser(SysUser user);

    void deleteUserById(Long id);

    Page<SysUser> selectUserByPage(Pageable pageable);

    SysUser findByUserCode(String userCode);

    List<SysUser> findByUserName(String userName);

    Page<SysUser> findByUserNameAndPage(String userName, Pageable pageable);
}
